import ReactDOM from 'react-dom/client'
import React from 'react'
// import App from './App.jsx'
import App from './App.jsx'
// @ts-ignore
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
// @ts-ignore
import { ReactQueryDevtools } from '@tanstack/react-query-devtools'

export const queryClient = new QueryClient()

ReactDOM.createRoot(document.getElementById('root') as HTMLDivElement).render(
  <QueryClientProvider client={queryClient}>
    <App />
    <ReactQueryDevtools />
  </QueryClientProvider>,
)
